package com.ruoyi.bizsys.mapper;

import java.util.List;

import com.ruoyi.bizsys.domain.LoanDeferredOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.bizsys.vo.LoanDeferredOrderOfferVo;
import com.ruoyi.bizsys.vo.LoanDeferredOrderVo;
import com.ruoyi.bizsys.vo.LoanDeferredOrderWebVo;

/**
 * 用户借据延期记录orderMapper接口
 *
 * @author wqg
 * @date 2022-06-09
 */
public interface LoanDeferredOrderMapper extends BaseMapper<LoanDeferredOrder>{

    LoanDeferredOrder selectByOrderNo(long loanDeferOrderNo);

    /**
     * 查询是否存在延期申请中的
     * @param custNo
     * @return
     */
    LoanDeferredOrder selectOneByCustNoStatusApply(String custNo);

    void LoanDeferredOrderFaild(String createTime);

    List<LoanDeferredOrderWebVo> selectLoanDeferredOrderList(LoanDeferredOrder loanDeferredOrder);

    List<LoanDeferredOrderVo> selectLoanDeferredOrderFunList(LoanDeferredOrder loanDeferredOrder);

    List<LoanDeferredOrderOfferVo> selectdeferredInfo(LoanDeferredOrder loanDeferredOrder);
}
